<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/include/include.jsp"%>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="<c:url value="/system/oplog/list"/>" method="post">
	<input type="hidden" name="orderField" value="logId" />
    <input type="hidden" name="orderDirection" value="asc"/>
	<div class="searchBar">		
		<table class="searchContent" style="width: 100%">
			<tr>
				<td width="50%">
					<youthburin:dwzSearchField label="page.opLog.logId" name="logId" ops="eq"/>					
				</td>
				<td width="50%">
					<youthburin:dwzSearchField label="page.opLog.busiName" name="busiName" ops="eq,cn"/>		
				</td>				
			</tr>		
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit"><fmt:message key="page.button.query"/></button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div> 
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">	
			<shiro:hasPermission name="oplog:view">		
			<li>
				<a class="icon" href="<c:url value="/"/>system/oplog/view/{sid_opLog}" title="<fmt:message key="page.opLog.viewOpLog"/>" target="navTab">
					<span><fmt:message key="page.button.view"/></span>
				</a>
			</li>
			<li class="line">line</li>
			</shiro:hasPermission>
		</ul>
	</div>
	
	<table class="list" width="100%" layoutH="123">
		<thead>
			<tr>
				<th width="5%"><fmt:message key="page.opLog.logId"/></th>
				<th width="15%"><fmt:message key="page.opLog.logType"/></th>
				<th width="20%"><fmt:message key="page.opLog.busiType"/></th>
				<th width="10%"><fmt:message key="page.opLog.busiId"/></th>
				<th width="20%"><fmt:message key="page.opLog.busiName"/></th>
				<th width="15%"><fmt:message key="page.opLog.creater"/></th>
				<th width="15%"><fmt:message key="page.opLog.createTime"/></th>
			</tr>
		</thead>
		<tbody>
			<c:if test="${not empty page.list}">
				<c:forEach items="${page.list}" var="opLog">
					<tr target="sid_opLog" rel="${opLog.logId}">
						<td>${opLog.logId }</td>
						<td>${opLog.rmpOpLogType.name}</td>
						<td>${opLog.rmpOpLogBusiType.name}</td>
						<td>${opLog.busiId}</td>
						<td>${opLog.busiName}</td>
						<td>${opLog.creater}</td>
						<td><fmt:formatDate value="${opLog.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					</tr>
				</c:forEach>
			</c:if>
		</tbody>
	</table>
	<youthburin:dwzPagination url="/system/oplog/list" orderField="logId" orderDirection="asc" conditions="logId,busiName" />
</div>
